<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScactbnotienvCreateDlg" widgetVar="ScactbnotienvCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateScactbnotienvTitle}">

            <h:form id="ScactbnotienvCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{scactbnotienvController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateScactbnotienvLabel_emailenviados}" for="emailenviados" />
                        <p:inputText id="emailenviados" value="#{scactbnotienvController.selected.emailenviados}" title="#{myBundle.CreateScactbnotienvTitle_emailenviados}" required="true" requiredMessage="#{myBundle.CreateScactbnotienvRequiredMessage_emailenviados}"/>

                        <p:outputLabel value="#{myBundle.CreateScactbnotienvLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{scactbnotienvController.selected.fecharegistro}" title="#{myBundle.EditScactbnotienvTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditScactbnotienvRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateScactbnotienvLabel_scsgtbrolesid}" for="scsgtbrolesid" />
                        <p:selectOneMenu id="scsgtbrolesid" value="#{scactbnotienvController.selected.scsgtbrolesid}" required="true" requiredMessage="#{myBundle.EditScactbnotienvRequiredMessage_scsgtbrolesid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scsgtbrolesController.items}"
                                           var="scsgtbrolesidItem"
                                           itemValue="#{scsgtbrolesidItem}"
                                           itemLabel="#{scsgtbrolesidItem.scsgtbrolesid.toString()}"
                                           />
                            <f:converter binding="#{scsgtbrolesConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateScactbnotienvLabel_scactbnotifiid}" for="scactbnotifiid" />
                        <p:selectOneMenu id="scactbnotifiid" value="#{scactbnotienvController.selected.scactbnotifiid}" required="true" requiredMessage="#{myBundle.EditScactbnotienvRequiredMessage_scactbnotifiid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scactbnotifiController.items}"
                                           var="scactbnotifiidItem"
                                           itemValue="#{scactbnotifiidItem}"
                                           itemLabel="#{scactbnotifiidItem.scactbnotifiid.toString()}"
                                           />
                            <f:converter binding="#{scactbnotifiConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scactbnotienvController.saveNew}" value="#{myBundle.Save}" update="display,:ScactbnotienvListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScactbnotienvCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScactbnotienvCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
